package com.jt.assistant.adapter

import android.annotation.SuppressLint
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import coil.load
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jt.assistant.R
import com.jt.assistant.base.BaseApplication
import com.jt.assistant.bean.Car
import com.jt.assistant.bean.CarReceiveBean

class CarSearchAdapter(mData: MutableList<Car>) :
    BaseQuickAdapter<Car, BaseViewHolder>(
        R.layout.item_car_search, mData
    ) {

    @SuppressLint("SetTextI18n")
    override fun convert(holder: BaseViewHolder, item: Car) {
        val text = holder.getView<TextView>(R.id.tv_text)
        text.text =  "车牌: " + item.license+" | "+ item.createTime+ "\n" +
                "运输类型: " + item.transType + "   " +
                "派车类型: " + item.sendType+ "\n" +
                "起点: " + item.start+ "\n" +
                "终点: " + item.end
    }


}